﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace IceDog.EFCore.Models.Blog
{
    /// <summary>
    /// 博客用户
    /// </summary>
    public class BlogUser
    {
        /// <summary>
        /// 用户id
        /// </summary>
        [Key]
        public int UserId { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Column("Account"),MaxLength(100)]
        public string Account { get; set; }
        /// <summary>
        /// 博客URL
        /// </summary>
        public string BlogUrl { get; set; }
        /// <summary>
        /// 博客文章列表
        /// </summary>
        public List<BlogArticle> Articles { get; set; }
    }
}
